package com.cty.pojo;

import org.apache.log4j.Logger;

/**
 * @Auther: cty
 * @Date: 2020/3/5 17:56
 * @Description:  People实体类
 * @version: 1.0
 */
public class People {
    Logger log = Logger.getLogger(People.class);

    private int id;
    private String name;


    public People() {
        super();
        log.debug("执行People无参构造方法");
    }
    public People(int id, String name) {
        super();
        this.id = id;
        this.name = name;
        log.debug("执行People有参构造-int，String");
    }
    public People(Integer id, String name) {
        super();
        this.id = id;
        this.name = name;
        log.debug("执行People有参构造-Integer，String");
    }
    public People(String name,int id) {
        super();
        this.id = id;
        this.name = name;
        log.debug("执行People有参构造-String，int");
    }

    public int getId() {
        return id;
    }
    public void setId(int id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    @Override
    public String toString() {
        return "People [id=" + id + ", name=" + name + "]";
    }
}
